package com.peng.order.config;

import org.springframework.amqp.core.Queue;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;




/**
 * @author： Peng
 * @date： 2024/6/29
 * @version: 1.0
 */
@Configuration
public class RabbitMQConfig {

    //可以通过配置文件来配置
    private String order_queue = "order.queue";

    @Bean
    public Queue orderQueue(){

        return new Queue(order_queue, true,true, false);
    }
}
